﻿<%@ Page Language="C#" MasterPageFile="~/hgmanage/Main.Master" AutoEventWireup="true"
    CodeBehind="bookinfo_E.aspx.cs" Inherits="huaguwang.hgmanage.book.bookinfo_E"
    Title="无标题页" %>

<%@ Register Assembly="HGDownListTree" Namespace="huaguwang" TagPrefix="hgdownlist" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="HGWebControls" Namespace="huaguwang.WebControls" TagPrefix="cc1" %>
<%@ Register Src="../UC/FLWUpLoad.ascx" TagName="FLWUpLoad" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="/swfupload/swfupload.js" type="text/javascript"></script>
    <script src="/swfupload/hgswfupload.js" type="text/javascript"></script>

    <script type="text/javascript">
        var sw, sw1;
        $(function() {
            $(".info_done_box").find("select:first").change(function() {
                $("#lbClass").html("");
                var textbox = $("info_class_box").children("input");
                var value = $(this).find("option:selected").text();
                if (value.indexOf("(") > 0 && value.indexOf(")") > 0) {
                    $("#lbClass").html("不能为根类别添加内容信息");
                    $(this).val("");
                }
                textbox.val(textbox.attr("title"));
            });
        }); 
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Body" runat="server">
    <cc1:WebUserToolBar ID="WebUserToolBar1" runat="server" OnButton0="WebUserToolBar1_Button0"
        OnButton1="WebUserToolBar1_Button1" ButtonCSS="btn_done" CssClass="toolbar">
    </cc1:WebUserToolBar>
            <asp:Panel ID="panEbook" runat="server">
                <div class="info_done_box">
                    <ul>
                        <li style="height: 35px;"><em>电子书类别</em>
                            <hgdownlist:HGDownListTree ID="HGdropCate" runat="server" Width="300px">
                            </hgdownlist:HGDownListTree>
                            <span class="mustlits">*</span> <span id="lbClass" class="mustlits"></span>
                            <asp:RequiredFieldValidator ID="valrCate" runat="server" ErrorMessage="请先选择类别;" ControlToValidate="HGdropCate"></asp:RequiredFieldValidator>
                         </li>
                            <li style="height: 35px;"><em>选择专家</em>
                                <asp:DropDownList ID="DropDownList1" runat="server" Height="28px" Width="301px">
                                </asp:DropDownList>
                            </li>
                            <li><em>电子书名称</em>
                                <asp:TextBox ID="txtTitle" runat="server" Width="300px"></asp:TextBox>
                                <span style="color: Red">*</span>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtTitle"
                                    ErrorMessage="请填写电子书名称"></asp:RequiredFieldValidator>
                            </li>
                            <li><em>电子书路径</em>
                                <asp:TextBox ID="txtBookUrl" runat="server" Width="300px"></asp:TextBox>
                                <span style="color: Red">*</span>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtBookUrl"
                                    ErrorMessage="请填写电子书路径"></asp:RequiredFieldValidator>
                            </li>
                            <li style="height: 200px;"><em>图书封面</em>
                                <uc1:FLWUpLoad ID="FLWUpLoad1" runat="server" M_Index="0" />
                            </li>
                            <li><em>所需积分</em>
                                <asp:TextBox ID="txtGrade" runat="server" Width="300px"></asp:TextBox>
                            </li>
                            <li><em>所需金币</em>
                                <asp:TextBox ID="txtGold" runat="server" Width="300px"></asp:TextBox>
                            </li>
                            <li style="height: 35px;"><em>信息来源</em>
                                <asp:TextBox ID="txtSource" runat="server" Width="300px"></asp:TextBox>
                            </li>
                            <li><em>置顶</em>
                                <asp:RadioButtonList ID="rdoListTopis" runat="server" RepeatDirection="Horizontal">
                                    <asp:ListItem Text="置顶" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="不置顶" Value="0" Selected="True"></asp:ListItem>
                                </asp:RadioButtonList>
                            </li>
                            <li><em>推荐</em>
                                <asp:RadioButtonList ID="rblRem" runat="server" RepeatDirection="Horizontal">
                                    <asp:ListItem Text="推荐" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="不推荐" Value="0" Selected="True"></asp:ListItem>
                                </asp:RadioButtonList>
                            </li>
                            <li style="height: 35px;"><em>网页标题</em>
                                <asp:TextBox ID="txtSEOtitle" runat="server" Width="400px"></asp:TextBox>
                            </li>
                            <li style="height: 35px;"><em>网页关键字</em>
                                <asp:TextBox ID="txtSEOkey" runat="server" Width="400px"></asp:TextBox>
                            </li>
                            <li style="height: 35px;"><em>网页描述</em>
                                <asp:TextBox ID="txtSEOdec" runat="server" Width="400px"></asp:TextBox>
                            </li>
                            <li style="height: 35px; display: none;"><em>内部关键字</em>
                                <asp:TextBox ID="txtInKey" runat="server" Width="400px"></asp:TextBox>
                            </li>
                            <li style="height: 35px; display: none;"><em>彩色关键字</em>
                                <asp:TextBox ID="txtColorKey" runat="server" Width="400px"></asp:TextBox>
                            </li>
                            <li style="height: 35px; display: none;"><em>彩色标题</em>
                                <asp:TextBox ID="txtColorTitle" runat="server" Width="400px"></asp:TextBox>
                            </li>
                            <li style="height: 300px;"><em>电子书详细信息</em>
                                <FCKeditorV2:FCKeditor ID="txtContent" runat="server" Height="300px" Value="" BasePath="/hgmanage/Public/fckeditor/"
                                    Width="75%" ToolbarStartExpanded="false">
                                </FCKeditorV2:FCKeditor>
                            </li>
                            <li style="height: 35px;"><em>是否有实体书籍</em>
                                <asp:RadioButtonList ID="rdoList" runat="server" RepeatDirection="Horizontal" AutoPostBack="true"
                                    OnSelectedIndexChanged="rdoList_SelectedIndexChanged">
                                    <asp:ListItem Text="没有" Value="0" Selected="True"></asp:ListItem>
                                    <asp:ListItem Text="有" Value="1"></asp:ListItem>
                                </asp:RadioButtonList>
                            </li>
                    </ul>
                </div>
            </asp:Panel>
            <asp:Panel ID="panRealBook" runat="server" Visible="false">
                <div class="info_done_box">
                    <ul>
                        <li style="height: 35px;" id="book_name"><em>实体书名称</em>
                            <asp:TextBox ID="txtRealBookName" runat="server" Width="300px"></asp:TextBox>
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtRealBookName"
                                ErrorMessage="请填写实体书名称"></asp:RequiredFieldValidator>
                        </li>
                        <li style="height: 35px;"><em>国际标准图书编号</em>
                            <asp:TextBox ID="txtRealISBN" runat="server" Width="300px"></asp:TextBox>
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtRealISBN"
                                ErrorMessage="请填写实体书国际标准图书编号"></asp:RequiredFieldValidator>
                        </li>
                        <li style="height: 35px;"><em>图书出版社</em>
                            <asp:TextBox ID="txtRealPublish" runat="server" Width="300px"></asp:TextBox>
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtRealPublish"
                                ErrorMessage="请填写实体书图书出版社"></asp:RequiredFieldValidator>
                        </li>
                        <li style="height: 35px;"><em>作者</em>
                            <asp:TextBox ID="txtRealAuthor" runat="server" Width="300px"></asp:TextBox>
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtRealAuthor"
                                ErrorMessage="请填写实体书作者"></asp:RequiredFieldValidator>
                        </li>
                        <li style="height: 35px;"><em>价格</em>
                            <asp:TextBox ID="txtRealPrice" runat="server" Width="300px"></asp:TextBox>
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="txtRealPrice"
                                ErrorMessage="请填写实体书价格"></asp:RequiredFieldValidator>
                        </li>
                        <li><em>图书封面</em>
                            <uc1:FLWUpLoad ID="FLWUpLoad2" runat="server" M_Index="1" />
                        </li>
                        <li style="display: none;"><em>所需积分</em>
                            <asp:TextBox ID="txtRealGrade" runat="server" Width="300px"></asp:TextBox>
                        </li>
                        <li><em>所需金币</em>
                            <asp:TextBox ID="txtRealGold" runat="server" Width="300px"></asp:TextBox>
                        </li>
                        <li style="height: 35px;"><em>已卖数量</em>
                            <asp:TextBox ID="txtRealSellCount" runat="server" Width="300px"></asp:TextBox>
                        </li>
                        <li style="height: 35px;"><em>库存数量</em>
                            <asp:TextBox ID="txtStockCount" runat="server" Width="300px"></asp:TextBox>
                        </li>
                        <li style="height: 300px;"><em>实体书详细信息</em>
                            <FCKeditorV2:FCKeditor ID="txtRealContent" runat="server" Height="300px" Value=""
                                BasePath="/hgmanage/Public/fckeditor/" Width="75%" ToolbarStartExpanded="false">
                            </FCKeditorV2:FCKeditor>
                        </li>
                    </ul>
                </div>
            </asp:Panel>
</asp:Content>
